package model;

public class CrossOverInput implements Comparable<CrossOverInput> {

	public int[] chromosome;
	public double fitnessValue;
	
	public CrossOverInput(int[] chromosome, double fitnessValue) {
		this.chromosome = chromosome;
		this.fitnessValue = fitnessValue;
	}

	@Override
	public int compareTo(CrossOverInput arg0) {
		if(this.fitnessValue == arg0.fitnessValue){
			return 0;
		}
		else if(this.fitnessValue > arg0.fitnessValue){
			return 1;
		}
		else {
			return -1;
		}
	}
	
	
}
